package com.byq.mm.smartlib.cluster.activity.server;

import android.app.Activity;

import com.byq.mm.application.cluster.provider.OnoffProvider;
import com.byq.mm.smartlib.cluster.UnsupportedClusterActivity;

import java.util.HashMap;
import java.util.Map;

public class ServerClusterActivityManager {
	static Map<String,  Class<? extends Activity>> activitys = new HashMap<String, Class<? extends Activity>>();
	
	static{
		activitys.put(OnoffProvider.Define.CLUSTER_NAME, ServerOnoffActivity.class);

	}
	static public Class<? extends Activity> getActivity(String clusterId){
		 Class<? extends Activity> rst = activitys.get(clusterId);
		 if(rst == null)
			 return UnsupportedClusterActivity.class;
		 return rst;
	}
	
}
